<div id="page-heading"><h1><?php echo sprintf(lang('user_edit_title'), $member->username);?></h1></div>
<?php $this->load->view('partials/notices'); ?>
<form method="post" action="<?php echo site_url(uri_string());?>" enctype="multipart/form-data">
		<table border="0" cellpadding="0" cellspacing="0"  id="id-form">
		<tr>
			<th valign="top"><?php echo lang('user_first_name_label');?> <span>*</span>:</th>
			<td><?php echo form_input('first_name', $member->first_name, 'id="first_name" class="inp-form"'); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('user_last_name_label');?>:</th>
			<td><?php echo form_input('last_name', $member->last_name, 'id="last_name" class="inp-form"'); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('user_email_label');?> <span>*</span>:</th>
			<td><?php echo form_input('email', $member->email, 'id="email" class="inp-form"'); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('user_username');?> <span>*</span>:</th>
			<td><?php echo form_input('username', $member->username, 'id="username" class="inp-form"'); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('user_display_name');?>:</th>
			<td><?php echo form_input('display_name', $member->display_name, 'id="display_name" class="inp-form"'); ?></td>
			<td></td>
		</tr>
		<?php if($logined_user->group == 'admin'):?>
		<tr>
			<th valign="top"><?php echo lang('user_group_label');?>:</th>
			<td><?php echo form_dropdown('group_id', array(0 => lang('global:select-pick')) + $groups_select, $member->group_id, 'id="group_id" class="select_box"'); ?></td>
			<td></td>
		</tr>
		<?php else:?>
		<tr style="display:none;">
			<th valign="top"><?php echo lang('user_group_label');?>:</th>
			<td><?php echo form_hidden('group_id', $member->group_id); ?></td>
			<td></td>
		</tr>
		<?php endif;?>
		<tr>
			<th valign="top"><?php echo lang('user_activate_label');?>:</th>
			<td><?php echo form_checkbox('active', 1, (isset($member->active) && $member->active == 1), 'id="active"'); ?></td>
			<td></td>
		</tr>
		<tr>
			<th valign="top"><?php echo lang('user_password_label');?>:</th>
			<td><?php echo form_password('password', '', 'id="password" class="inp-form"'); ?></td>
			<td></td>
		</tr>
	<tr>
		<th>&nbsp;</th>
		<td valign="top">
			<input type="submit" value="" class="form-submit" />
			<input type="reset" value="" class="form-reset"  />
		</td>
		<td></td>
	</tr>
	</table>
</form>	